package com.lhm.tool;

import java.util.HashMap;
import java.util.Map;

public class RespJson {

    public static Map<String, Object> pack(int code, String msg, Object data) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("code", code);
        map.put("msg", msg);
        map.put("data", data);
        return map;
    }
}
